﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

[Table("QHSE_XY_DANGER")]
public class QHSESysDanger : EntityBase
{
    public QHSESysDanger()
    {
    }

    /// <summary>
    ///隐患id
    /// </summary>
    [Column("QHSE_XY_DANGER_ID")]
    [MaxLength(32)]
    [Key]
    public string QhseXyDangerId { get; set; } = "";
    /// <summary>
    /// 检查类型
    /// </summary>
    [Column("CHECK_TYPE")]
    [MaxLength(200)]
    public string CheckType { get; set; } = "";
    /// <summary>
    /// 检查单位
    /// </summary>
    [Column("CHECKORGANIZATIONID")]
    [MaxLength(200)]
    public string? CheckOrganizationId { get; set; } = "";

    /// <summary>
    /// 录入日期
    /// </summary>
    [Column("ENTER_DATE")]
    public DateTime? EnterTime { get; set; }

    /// <summary>
    /// 数据来源
    /// </summary>
    [Column("ENTER_SYS")]
    [MaxLength(100)]
    public string? EnterSys { get; set; }
    /// <summary>
    /// 检查人员
    /// </summary>
    [Column("USER_ID")]
    [MaxLength(32)]
    public string UserId { get; set; } = "";
    /// <summary>
    /// 检查人员姓名
    /// </summary>
    [Column("CHECK_NAME")]
    [MaxLength(255)]
    public string CheckName { get; set; } = "";
    /// <summary>
    /// 检查日期
    /// </summary>
    [Column("CHECK_DATE")]
    public DateTime CheckDate { get; set; }
    /// <summary>
    /// 被检单位ID
    /// </summary>
    [Column("ORGANIZATION_ID")]
    [MaxLength(50)]
    public string OrganizationId { get; set; } = "";
    /// <summary>
    /// 被检单位名称
    /// </summary>
    [MaxLength(200)]
    [Column("ORGANIZATION_NAME")]
    public string OrganizationName { get; set; } = "";
    /// <summary>
    /// 作业项目
    /// </summary>
    [MaxLength(100)]
    [Column("WORK_ITEM")]
    public string WorkItem { get; set; } = "";
    /// <summary>
    /// 作业专业
    /// </summary>
    [MaxLength(100)]
    [Column("WORK_SPECIALTY")]
    public string WorkSpecialty { get; set; } = "";
    /// <summary>
    /// 关键作业类型
    /// </summary>
    [MaxLength(32)]
    [Column("WORK_TYPE")]
    public string? WorkType { get; set; }
    /// <summary>
    /// 关键作业内容
    /// </summary>
    [MaxLength(1000)]
    [Column("WORK_CONTENT")]
    public string? WorkContent { get; set; }
    /// <summary>
    /// 作业风险等级
    /// </summary>
    [MaxLength(32)]
    [Column("WORK_RISK")]
    public string? WorkRisk { get; set; }
    /// <summary>
    /// 位置区域
    /// </summary>
    [MaxLength(255)]
    [Column("LOCATION")]
    public string Location { get; set; } = "";
    /// <summary>
    /// 隐患性质分类
    /// </summary>
    [MaxLength(32)]
    [Column("DANGER_TYPE_CATEGORY")]
    public string? DangerTypeCategory { get; set; } = "";
    /// <summary>
    /// 隐患级别
    /// </summary>
    [MaxLength(32)]
    [Column("DANGER_TYPE")]
    public string DangerType { get; set; } = "";
    /// <summary>
    /// 隐患描述
    /// </summary>
    [MaxLength(1000)]
    [Column("DESCRIPTION")]
    public string Description { get; set; } = "";
    /// <summary>
    /// 隐患类别
    /// </summary>
    [MaxLength(100)]
    [Column("DANGER_CATEGORY")]
    public string DangerCategory { get; set; } = "";
    /// <summary>
    /// 隐患条款
    /// </summary>
    [MaxLength(1000)]
    [Column("DANGER_CLAUSE")]
    public string? DangerClause { get; set; } = "";
    /// <summary>
    /// 对应要素体系
    /// </summary>
    [MaxLength(100)]
    [Column("HSE_ELEMENT")]
    public string HseElement { get; set; } = "";
    /// <summary>
    /// 对应安全沟通类型
    /// </summary>
    [MaxLength(100)]
    [Column("OBSERVE_COMM")]
    public string? ObserveComm { get; set; }
    /// <summary>
    /// 原因分析
    /// </summary>
    [MaxLength(32)]
    [Column("CAUSE_ANALYSIS")]
    public string CauseAnalysis { get; set; } = "";
    /// <summary>
    /// 归属直线部门
    /// </summary>
    [MaxLength(32)]
    [Column("DIRECT_DEPARTMENT")]
    public string DirectDepartment { get; set; } = "";
    /// <summary>
    /// 可能后果
    /// </summary>
    [MaxLength(32)]
    [Column("POTENTIAL_CONSEQUENCE")]
    public string? PotentialConsequence { get; set; }
    /// <summary>
    /// 隐患图片
    /// </summary>
    [MaxLength(1000)]
    [Column("DANGER_PIC")]
    public string? DangerPic { get; set; }
    /// <summary>
    /// 整改负责人员ID
    /// </summary>
    [MaxLength(32)]
    [Column("REFORMER_USER_ID")]
    public string ReformerUserId { get; set; } = "";
    /// <summary>
    /// 整改人员姓名
    /// </summary>
    [MaxLength(255)]
    [Column("REFORMER_USER_NAME")]
    public string ReformerUserName { get; set; } = "";
    /// <summary>
    /// 限期整改时间
    /// </summary>
    [Column("REFORMER_DATE")]
    public DateTime ReformerDate { get; set; }
    /// <summary>
    /// 隐患图片
    /// </summary>
    [MaxLength(1000)]
    [Column("REFORMER_PIC")]
    public string? ReformerPic { get; set; }
    /// <summary>
    /// 隐患状态
    /// </summary>
    [MaxLength(32)]
    [Column("STATUS")]
    public string? Status { get; set; }
    /// <summary>
    /// 验收时间
    /// </summary>
    [Column("ACCEPTANCE_DATE")]
    public DateTime? AcceptanceDate { get; set; }
    /// <summary>
    /// 验收描述
    /// </summary>
    [MaxLength(1000)]
    [Column("CHECK_DESCRIPTION")]
    public string? CheckDescription { get; set; }

    [MaxLength(1000)]
    [Column("IMAGE_HASH")]
    public string? ImageHash { get; set; }
    /// <summary>
    /// 隐患类别ID
    /// </summary>
    [MaxLength(255)]
    [Column("DANGERCATE_ID")]
    public string? DangerCateId { get; set; }
    /// <summary>
    /// 检查类型编码
    /// </summary>
    [MaxLength(255)]
    [Column("CHECKTYPE_CODE")]
    public string? CheckTypeCode { get; set; }
    /// <summary>
    /// 关键作业编码
    /// </summary>
    [MaxLength(255)]
    [Column("KEYWORK_CODE")]
    public string? KeyWorkCode { get; set; }
    /// <summary>
    /// 作业专业编码
    /// </summary>
    [MaxLength(255)]
    [Column("WORKSPECIALTY_CODE")]
    public string? WorkSpecialtyCode { get; set; }
    /// <summary>
    /// 隐患级别编码
    /// </summary>
    [MaxLength(255)]
    [Column("DANGERTYPE_CODE")]
    public string? DangerTypeCode { get; set; }
    /// <summary>
    /// 要素体系编码
    /// </summary>
    [MaxLength(255)]
    [Column("HSE_CODE")]
    public string? HseCode { get; set; }
    /// <summary>
    /// 归属部门编码
    /// </summary>
    [MaxLength(255)]
    [Column("DEPARTMENT_CODE")]
    public string? DepartmentCode { get; set; }
    /// <summary>
    /// 原因分析编码
    /// </summary>
    [MaxLength(255)]
    [Column("CLAUSEANALYSIS_CODE")]
    public string? ClauseAnalysisCode { get; set; }

    /// <summary>
    /// ERP编号
    /// </summary>
    [MaxLength(32)]
    [Column("ERP_NO")]
    public string? ErpNo { get; set; }
    /// <summary>
    /// 设备名称
    /// </summary>
    [MaxLength(64)]
    [Column("DEV_NAME")]
    public string? DevName { get; set; }
    /// <summary>
    /// 规格型号
    /// </summary>
    [MaxLength(400)]
    [Column("SPEC_MOD")]
    public string? SpecMod { get; set; }


    /// <summary>
    /// 二级组织机构ID
    /// </summary>
    [Column("SECOND_ORGANIZATIONID")]
    [MaxLength(50)]
    public string? SecondOrganizationId { get; set; } = "";
    /// <summary>
    /// 三级组织机构ID
    /// </summary>
    [Column("THIRD_ORGANIZATIONID")]
    [MaxLength(50)]
    public string? ThirdOrganizationId { get; set; } = "";

    /// <summary>
    /// 更新人id
    /// </summary>
    [MaxLength(50)]
    [Column("UPDATE_BY")]
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("UPDATE_TIME")]
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 处置意见
    /// </summary>
    [MaxLength(255)]
    [Column("MANAGEMENT")]
    public string? Management { get; set; }

    /// <summary>
    /// 视频链接
    /// </summary>
    [MaxLength(255)]
    [Column("VIDEO_URL")]
    public string? VideoUrl { get; set; }
    /// <summary>
    /// 数据检查方式
    /// </summary>
    [MaxLength(255)]
    [Column("INSPECTION_METHOD")]
    public string? InspectionMethod { get; set; }
}
